class MessageController < ApplicationController
    #模版
    layout "framework"
    
    def index
    end
    
    def list_messages
    	@messages = Message.find(:all,:conditions=>'checked=0',:order=>'create_date_at DESC')
    end
    
    def check_message
    	Message.update(params[:id],:checked=>1)
    	redirect_to :action => "list_messages"
    end
end
